import 'package:flutter/material.dart';

/// 首页
class Page2Page extends StatefulWidget {
  /// 标题
  final String title;
  
  /// 构造方法
  Page2Page({Key key, @required this.title}) : super(key: key);
  
  @override
  State<StatefulWidget> createState() => Page2PageState();
}

/// 主页状态
class Page2PageState extends State<Page2Page> {
  
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Container(
        decoration: BoxDecoration(color: Colors.blue),
      ),
    );
  }
}
